/**********************************************************************************
**
** Copyright (C) 2009 Jostein Bratlie
** Contact: jostein.bratlie@gmail.com | http://bratlie.info | http://episteme.hin.no
**
** This file is part of GMQtExt, a GMlib and Qt extension library
**
** GMQtExt is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** GMQtExt is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with GMQtExt.  If not, see <http://www.gnu.org/licenses/>.
**
**********************************************************************************/



#ifndef REPLOTWIDGET_H
#define REPLOTWIDGET_H


// Qt
#include <QtGui/QWidget>

class QSpinBox;


// GMlib
namespace GMlib {

  class SceneObject;
}



namespace GMQtExt {

  class ReplotWidget : public QWidget {
    Q_OBJECT
  public:
    ReplotWidget( QWidget* parent = 0x0 );

  public slots:
    void                set( GMlib::SceneObject *obj );

  private:
    QSpinBox            *_sam_u;
    QSpinBox            *_sam_v;
    QSpinBox            *_der_u;
    QSpinBox            *_der_v;
    GMlib::SceneObject  *_obj;

  private slots:
    void                _slotReplot();
    void                _slotReset();

  signals:
    void                signReploted();

  }; // END class ReplotWidget

} // END namespace GMQtExt

#endif // REPLOTWIDGET_H
